#!/bin/bash

cd /data/ysnotes/
git pull
cargo build --release
# kill -9 $(ps -ef |grep -w 'ysnotes' | grep -v 'grep'|awk '{print $2}')
rm -rf ./ysnotes
cp -rf target/release/ysnotes .
./ysnotes